package org.fxml.events {
	import flash.events.IEventDispatcher;
	import flash.events.Event;

	/**
	 * @author jdoczy
	 */
	public class ApplicationEvent extends Event{
		
		public static const EVENT_ADDED : String = "eventAdded";
		protected var _event : String;
		protected var _eventTarget : IEventDispatcher;

		public function ApplicationEvent(type:String, event:String, eventTarget:IEventDispatcher, bubbles:Boolean=false, cancelable:Boolean=false){
			super(type, bubbles, cancelable);
			
			_event = event;
			_eventTarget = eventTarget;
		}
		
		
		public function get event():String{
			return _event;
		}
		
		public function get eventTarget():IEventDispatcher{
			return _eventTarget;
		}
		
		
		
	}
}
